<?php

namespace Modules\Permission\Entities;


use Illuminate\Database\Eloquent\Collection as EloquentCollection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Support\Arr;

use Spatie\Permission\Models\Permission as Origin;
class Permission extends Origin {
    use HasFactory;
   
    // use LogsActivityTrait;

    //    protected $fillable = [];
    protected $guarded = ['id'];

    public function scopeAdmin($query){
        return $query->where("guard_name",'admin');
    }
}
